package com.example.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.news.pojo.entity.Article;
import com.example.news.pojo.entity.Category;
import com.example.news.pojo.vo.ArticleVo;
import com.example.news.pojo.vo.CategoryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    Page<CategoryVo> getAllCategories(Page<Category> page);
}
